<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:o="http://openfaces.org/"
	template="/WEB-INF/esquema/plantillaworkflow.xhtml">

	<ui:define name="sidebar">
		<ui:include src="/WEB-INF/esquema/sidebar2.xhtml"/>
	</ui:define>

	<ui:define name="mainControls">
		<o:commandButton value="#{messages['button.ok']}" onclick="finish();" />
		<o:commandButton value="#{messages['button.l8r']}" onclick="pause();" />
	</ui:define>

	<ui:define name="extraControls">
	</ui:define>

	<ui:define name="body">
		<style type="text/css">
			.col {
				vertical-align:top;
			}
		</style>
		
		<div align="center">
			<strong>#{messages['presentation.header']}</strong>
			<rich:separator lineType="solid"/>
			<br/>

			<ui:include src="/WEB-INF/includes/showHelpIncl.xhtml">
				<ui:param name="width" value="500" />
				
				<ui:param name="msgBullet"  value="#{messages['presentation.instruction1']}" />
				<ui:param name="msgBullet1" value="#{messages['presentation.instruction2']}" />
				<ui:param name="msgBullet2" value="#{messages['presentation.instruction3']}" />
			</ui:include>

			<br/>
		</div>
		<div align="center">
			<br/>
			<strong>#{messages['introfin.transactiondata']}</strong>
			<rich:separator lineType="solid"/>
			<br/>
			<h:form>
				<ui:include src="includes/inputInitialData.xhtml" />
				<a4j:jsFunction name="finish" action="#{transactionHelper.endPresentation}"/>
				<a4j:jsFunction name="pause" action="home"/>
				
				<br/>
				<br/>
			</h:form>
			<h:form>
				<div align="center">
					<strong>#{messages['introfin.attacheddocs']}</strong>
				</div>
				<rich:separator lineType="solid"/>
			
				<h:panelGroup id="tabla">

					<ui:include src="includes/showAttachedFiles.xhtml" />


				</h:panelGroup>
				
				<br />
				<a4j:commandLink value="#{messages['intro2.add']}"
						oncomplete="if (#{facesContext.maximumSeverity==null}) #{rich:component('editPanel')}.show()" reRender="info">
					<f:setPropertyActionListener value="0" target="#{transactionHelper.editMode}" />
				</a4j:commandLink>
				
				<br/>
				<br/>
				
			</h:form>
		</div>
		
		
		<ui:include src="/workflow/transaction/includes/attachFiles.xhtml" />
		<ui:include src="/WEB-INF/includes/selectParty.xhtml" />
		<ui:include src="/zoneselector/selectZonePanel.xhtml">
			<ui:param name="width" value="800" />
			<ui:param name="height" value="620" />
			<ui:param name="drawParcelLayerOnly" value="true" />
			<ui:param name="selectAction" value="transactionHelper.selectZonesFromMap" />
			<ui:param name="render" value="grpZone" />
		</ui:include>
	</ui:define>
	
</ui:composition>
